#pragma once
#include "BaseShape.h"
#ifndef _CObitalFlower_
#define _CObitalFlower_

#ifdef NUM_OF_ANGLE
#undef NUM_OF_ANGLE
#endif
#define NUM_OF_ANGLE 37

class CObitalFlower : public BaseShape
{
public:
	double xCenter;
	double yCenter;
	double xCenter1;
	double yCenter1;
	double radiansOffset;
	double lengthSide;
	CObitalFlower(void);
	CObitalFlower(CPoint, CPoint, COLORREF);
	BOOL Draw(CDC *cDC);
	~CObitalFlower(void);
	CObitalFlower (CPoint m_pBegin, CPoint m_pEnd, COLORREF m_clrBack, COLORREF m_cPenColor, BASESHAPE__T m_nShapeType, INT m_nRotate);
	void Serialize ( CArchive &ar );
private:
	//thiet lap toa do cho cac dinh trong hinh chu nhat
	void setCoordinate();
	void DrawNullRect(CDC *);
	int AngleDist();
};
#endif

